package com.oracle.third.utils;

import java.util.Random;

public class CodeUtils {

    public static String createCode(){
        StringBuilder str = new StringBuilder();
        Random random = new Random();
        for (int i = 0; i < 6; i++) {
            str.append(random.nextInt(10));
        }
        return str.toString();
    }

    public static void main(String[] args) {
        System.out.println(createCode());
    }

}
